/* header */
header {
  width: 100%;
  background-color: #fff;
  display: flex;
  border: 1px solid #ccc;
  padding: 1em 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;

  .icon {
    width: 20%;
    text-align: center;
    
    img {
      width: 35%;
    }
  }

  .search {
    width: 80%;

    .box {
      position: relative;
      width: 80%;
      height: 100%;
      border-radius: 2em;
      margin-left: .8em;
      border: 1px solid #666;
      overflow: hidden;

      p {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin-bottom: 0;
        color: #ccc;
        text-align: center;
        line-height: 1.8em;
      }

      input {
        position: absolute;
        left: 0;
        top: 0;
        border: none;
        background: none;
        outline: none;
        width: 100%;
        height: 100%;
        padding-left: 1em;
        // background: #666;

        &:focus {
          background-color: #fff;
        }
      }

    }
  }
}

/* body背景 */
body {
  background: url(../images/bg.png);
}

/* footer导航 */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 99;
  width: 100%;
  background: url(../images/footer.png) no-repeat;
  background-size: 100%;
  border-top: 1px solid #231e45;

  ul {
    display: flex;
    padding: 0;
    padding-top: .5em;
    margin: 0;
    li {
      width: 25%;
      list-style: none;
      text-align: center;

      a {
        text-decoration: none;
      }

      img {
        width: 27%;
      }

      img:nth-of-type(2) {
        display: none;
      }

      p {
        margin-top: .1em;
        margin-bottom: 0;
        font-size: 1em;
        color: #231e45;
      }

      &:hover {
        img:nth-of-type(1) {
          display: none;
        }

        img:nth-of-type(2) {
          display: inline-block;
        }

        p {
          color: #fade5d;
        }
      }
    }

    li:nth-of-type(2) {
      img {
        width: 25%;
      }
    }

    li:nth-of-type(4) {
      img {
        width: 25%;
      }
    }
  }
}

